﻿using BJoin.DemoProject.Entities;
using DapperExtensions.Mapper;

namespace BJoin.DemoProject.D2ECustomerMapper
{
    public class FileClassMapper : ClassMapper<FileEntity>
    {
        public FileClassMapper()
        {
            Table("t_file");
            Map(f => f.Id).Key(KeyType.Assigned);
            Map(f => f.Crt).ReadOnly();
            Map(f => f.Upt).ReadOnly();
            Map(f => f.TagIds).Column("tag_ids");
            Map(f => f.Ext).Column("ext");
            base.AutoMap();
        }
            
    }
}
